package com.hqyj.shop.pojo;

import java.util.Date;

public class Order {
    private int orderId;//订单Id
    private String orderNum;//订单编号
    private int userId;//用户id
    private String userName;//用户名，就是user_account字段
    private String status;//订单状态
    private int goodsId;//商品id
    private String goodsName;//商品名
    private double price;//单价
    private Date orderTime;//下单时间
    private String address;//收货地址
    private double totalPrice;//总金额
    private String phone;//电话
    private int number;//数量

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public Order(int orderId, String orderNum, int userId, String userName, String status, int goodsId, String goodsName, double price, Date orderTime, String address, double totalPrice, String phone, int number) {
        this.orderId = orderId;
        this.orderNum = orderNum;
        this.userId = userId;
        this.userName = userName;
        this.status = status;
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.price = price;
        this.orderTime = orderTime;
        this.address = address;
        this.totalPrice = totalPrice;
        this.phone = phone;
        this.number = number;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderNum='" + orderNum + '\'' +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", status='" + status + '\'' +
                ", goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", price=" + price +
                ", orderTime=" + orderTime +
                ", address='" + address + '\'' +
                ", totalPrice=" + totalPrice +
                ", phone='" + phone + '\'' +
                ", number=" + number +
                '}';
    }
}
